package com.mengmablog.blog.entity;

import java.util.Date;

public class Logs {
    private Integer id;

    private String action;

    private String message;

    private String type;

    private String ip;

    private Integer userId;

    private Date created;

    private String data;

    public Logs(Integer id, String action, String message, String type, String ip, Integer userId, Date created, String data) {
        this.id = id;
        this.action = action;
        this.message = message;
        this.type = type;
        this.ip = ip;
        this.userId = userId;
        this.created = created;
        this.data = data;
    }

    public Logs() {
        super();
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getAction() {
        return action;
    }

    public void setAction(String action) {
        this.action = action == null ? null : action.trim();
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message == null ? null : message.trim();
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type == null ? null : type.trim();
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip == null ? null : ip.trim();
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Date getCreated() {
        return created;
    }

    public void setCreated(Date created) {
        this.created = created;
    }

    public String getData() {
        return data;
    }

    public void setData(String data) {
        this.data = data == null ? null : data.trim();
    }
}